package com.xiaoxing.zhinenghuacangku_linyi.di.module;

import com.jess.arms.di.scope.ActivityScope;
import com.xiaoxing.zhinenghuacangku_linyi.mvp.contract.LinYi_YiKuContract;
import com.xiaoxing.zhinenghuacangku_linyi.mvp.model.LinYi_YiKuModel;

import dagger.Module;
import dagger.Provides;


@Module
public class LinYi_YiKuModule {
    private LinYi_YiKuContract.View view;

    /**
     * 构建YiKuModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public LinYi_YiKuModule(LinYi_YiKuContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    LinYi_YiKuContract.View provideYiKuView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    LinYi_YiKuContract.Model provideYiKuModel(LinYi_YiKuModel model) {
        return model;
    }
}